package com.example.springbootcore.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author ljw
 * @description
 * @date 2021/9/30 7:47
 */
@Setter
@Getter
@Component
@PropertySource("teacher.properties")
@ConfigurationProperties(prefix = "teacher")
public class TeacherProperties {

    private String name;
    private Long age;

}
